home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBprogressbar / DialogThread.cpp next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.1 KB  |  56 lines

  1. // DialogThread.cpp : implementation file
  2.  
  3. #include "stdafx.h"
  4. #include "Progress.h"
  5. #include "DialogThread.h"
  6. #include "ProgressDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12.  
  13. #endif
  14.  
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // DialogThread
  18.  
  19. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  20.  
  21. DialogThread::DialogThread()
  22. {    
  23. }
  24.  
  25. DialogThread::~DialogThread()
  26. {
  27. }
  28.  
  29. BOOL DialogThread::InitInstance()
  30. {    
  31.     ProgressDlg Prog;                                    // dialog box
  32.  
  33.     g_pProgBar = &Prog;                                    // save pointer to new dialog box for use outside this thread
  34.     
  35.     Prog.DoModal();                                        // put in on the screen
  36.  
  37.     return TRUE;
  38. }
  39.  
  40. int DialogThread::ExitInstance()
  41. {
  42.     // TODO:  perform any per-thread cleanup here
  43.     return CWinThread::ExitInstance();
  44. }
  45.  
  46. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  47.     //{{AFX_MSG_MAP(DialogThread)
  48.         // NOTE - the ClassWizard will add and remove mapping macros here.
  49.     //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // DialogThread message handlers
  54.  
  55.  
  56.